home *** CD-ROM | disk | FTP | other *** search
-
- What is RTTI ?
- --------------
-
- The C++ language currently does not provide a mechanism for an object to
- determine its type at run-time. Some applications do need to know the names
- of classes, their inheritance structure and other information at run-time.
- In order to meet this need, the ANSI C++ committee has approved a proposal
- for a language extension to support Run Time Type Information (RTTI).
-
- The RTTI support in C++ consistes of three components :
- 1. The "dynamic_cast" operator allows for automatic run-time checks for
- type conversions.
- 2. The "typeid" operator may be used to return the type of an object at
- run-time.
- 3. The possibility of user-defined libraries to extend the built-in RTTI
- facilities.
-
- The software contained in this package provides library support for the
- above-mentioned features. This is meant to be a stop-gap implementation,
- until commercial compilers support the RTTI extensions. When commercial
- compiler support for RTTI is widely available, the library could be used
- in conjunction with built-in language features to support user-dfefined
- extensions.
-